#ifndef UARTSELECT_H
#define UARTSELECT_H

#include <QDialog>
#include <QSerialPortInfo>
#include <QDebug>
#include <QPushButton>
#include <QLabel>
#include <QComboBox>
#include <QSerialPort>

class UartSelect : public QDialog
{
    Q_OBJECT
public:
    explicit UartSelect(QDialog *parent = 0);
    QString selectedUartName;
    int selectedBaud,selectedCheck,selectedData,selectedStop;

private:
    QSerialPortInfo uartInfo[200];
    QSerialPortInfo selectedUartInfo;
    QComboBox *selectBox,*selectBundBox,*selectCheckBox,*selectDataBox,*selectStopBox;
    QPushButton *select,*cancel;
    QLabel *bundsLabel,*checkLabel,*dataLabel,*stopLabel;
    int selectedNumber;
    int count;

public slots:
    void getSelectedUartInfo();
    void canceled();
};

#endif // UARTSELECT_H
